
import { queryAreaData } from '@/api/storeConstruction'
export function getAreaData() {
  const dataForm = new FormData()
  dataForm.append('pageFlag', false)
  return queryAreaData(dataForm).then(res => {
    if (res.success && res.data) {
      const arr = res.data.records
      const areaList = arr.map(item => {
        const obj = { dictCode: item.areaCode, dictName: item.areaName }
        return obj
      })
      return areaList
    }
  })
}
